.class Lcom/estrongs/android/pop/utils/p$a$b;
.super Ljava/lang/Object;
.source "FileOperateUtils.java"

# interfaces
.implements Les/y80;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/utils/p$a;->a(Ljava/lang/String;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/estrongs/android/pop/utils/p$a;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/utils/p$a;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iput-object p2, p0, Lcom/estrongs/android/pop/utils/p$a$b;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/s80;Z)V
    .locals 7

    if-eqz p2, :cond_1

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/pop/utils/p$a$b;->a:Ljava/lang/String;

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iget-object p2, p2, Lcom/estrongs/android/pop/utils/p$a;->b:Landroid/app/Activity;

    instance-of v0, p2, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v0, :cond_1

    .line 3
    check-cast p2, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 4
    invoke-virtual {p2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p2

    .line 5
    instance-of v0, p2, Lcom/estrongs/android/ui/homepage/i;

    if-nez v0, :cond_0

    instance-of v0, p2, Lcom/estrongs/android/view/a0;

    if-eqz v0, :cond_1

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iget-object v0, v0, Lcom/estrongs/android/pop/utils/p$a;->b:Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/pop/utils/p$a$b$a;

    invoke-direct {v1, p0, p2}, Lcom/estrongs/android/pop/utils/p$a$b$a;-><init>(Lcom/estrongs/android/pop/utils/p$a$b;Lcom/estrongs/android/view/FileGridViewWrapper;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 7
    :cond_1
    :try_start_0
    iget-object p2, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iget-object p2, p2, Lcom/estrongs/android/pop/utils/p$a;->c:Ljava/lang/String;

    invoke-static {p2}, Lcom/estrongs/android/statistics/c;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 8
    new-instance p2, Lorg/json/JSONObject;

    invoke-direct {p2}, Lorg/json/JSONObject;-><init>()V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iget-object v0, v0, Lcom/estrongs/android/pop/utils/p$a;->a:Lcom/estrongs/fs/g;

    invoke-static {v0}, Lcom/estrongs/android/util/n0;->b(Lcom/estrongs/fs/g;)I

    move-result v0

    .line 10
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    const/4 v2, 0x1

    invoke-virtual {p2, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$a$b;->b:Lcom/estrongs/android/pop/utils/p$a;

    iget-object v0, v0, Lcom/estrongs/android/pop/utils/p$a;->a:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v4

    const-string v0, "rename"

    .line 12
    invoke-virtual {p2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1}, Les/s80;->m()I

    move-result v3

    const/4 v6, 0x4

    if-ne v3, v6, :cond_2

    const/4 v3, 0x1

    goto :goto_0

    :cond_2
    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 13
    :goto_0
    invoke-virtual {p1}, Les/s80;->l()Les/u80;

    move-result-object p1

    iget v6, p1, Les/u80;->a:I

    move-object v2, p2

    .line 14
    invoke-static/range {v0 .. v6}, Lcom/estrongs/android/pop/utils/p;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZJI)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 15
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-void
.end method
